package com.ohuang.wallpapermanager.db

import com.ohuang.wallpapermanager.config.LocalConfig
import com.ohuang.wallpapermanager.data.WallPaperInfoData
import com.ohuang.wallpapermanager.storage.storage.SpStorageUtil
import com.ohuang.wallpapermanager.storage.storage.getForGson
import com.ohuang.wallpapermanager.storage.storage.getForKotlinJson
import com.ohuang.wallpapermanager.storage.storage.getForMoshi
import com.ohuang.wallpapermanager.storage.storage.getValue
import com.ohuang.wallpapermanager.storage.storage.setValue
import com.ohuang.wallpapermanager.util.AppUtil

class WallPaperInfoDb(type: String) {

    private var storageUtil =
        SpStorageUtil(AppUtil.getInstance().application, "WallPaperInfoDb_$type")

    var wallPaperInfoList: MutableList<WallPaperInfoData> by storageUtil.getForKotlinJson(
        "data",
        arrayListOf()
    )



}